import request from '/@/utils/request';
export function lampsApi(){
    return {
        getTableList:(params:object)=>{
            return request({
                url: '/api/admin/roadside/lamps',
                method: 'get',
                params,
            });
        },
        addlamps:(data:object)=>{
            return request({
                url: '/api/admin/roadside/lamp',
                method: 'post',
                data,
            });
        },
        editlamps:(data:object)=>{
            return request({
                url: '/api/admin/roadside/lamp',
                method: 'put',
                data,
            });
        },
        dellamps:(data:object)=>{
            return request({
                url: '/api/admin/roadside/lamp',
                method: 'delete',
                data,
            });
        },
    }
}